package com.scap.dfs.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


/**
 * The persistent class for the DEPARTMENT database table.
 * 
 */
@Entity
@Table(name="DEPARTMENT")
@NamedQuery(name="Department.findAll", query="SELECT d FROM Department d")
@org.hibernate.annotations.Entity(
		dynamicUpdate = true
)
public class Department implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private DepartmentPK id;

	@Column(name="ACTIVE")
	private String active;

	@Column(name="DEFAULT_LOCATION_CODE")
	private String defaultLocationCode;

	@Column(name="DESCRIPTION")
	private String description;

	@Column(name="GL_CODE")
	private String glCode;

	@Column(name="HOSPITAL_UNIT_CODE")
	private String hospitalUnitCode;

	@Column(name="UPDATE_DATE")
	private String updateDate;

	@Column(name="UPDATE_TIME")
	private String updateTime;

	@Column(name="USER_ID")
	private String userId;

	public Department() {
		
	}

	public DepartmentPK getId() {
		return this.id;
	}

	public void setId(DepartmentPK id) {
		this.id = id;
	}

	public String getActive() {
		return this.active;
	}

	public void setActive(String active) {
		this.active = active;
	}

	public String getDefaultLocationCode() {
		return this.defaultLocationCode;
	}

	public void setDefaultLocationCode(String defaultLocationCode) {
		this.defaultLocationCode = defaultLocationCode;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getGlCode() {
		return this.glCode;
	}

	public void setGlCode(String glCode) {
		this.glCode = glCode;
	}

	public String getHospitalUnitCode() {
		return this.hospitalUnitCode;
	}

	public void setHospitalUnitCode(String hospitalUnitCode) {
		this.hospitalUnitCode = hospitalUnitCode;
	}

	public String getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = updateDate;
	}

	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "Department [id=" + id + ", active=" + active
				+ ", defaultLocationCode=" + defaultLocationCode
				+ ", description=" + description + ", glCode=" + glCode
				+ ", hospitalUnitCode=" + hospitalUnitCode + ", updateDate="
				+ updateDate + ", updateTime=" + updateTime + ", userId="
				+ userId + "]";
	}
	
	

}